package com.xujl.hsns.client;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class HSNSProxy implements InvocationHandler {
	
	private HSNSClient proxy;
	public HSNSProxy(HSNSClient proxy){
		this.proxy=proxy;
	}

	public Object invoke(Object o, Method method, Object[] args)
			throws Throwable {
		synchronized (proxy) {
			
			Object  returnV= proxy.invoke( method.toGenericString(), args);
			return 	returnV;//Integer.parseInt(returnV.toString());
		}
	}

}
